// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_MTRL_SCRAP_ITEM
// * CreateDate    : 2014-06-05 18:30:20
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:20
// * LastChanger   : 2014-06-05 18:30:20
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class ProdMtrlScrapItemTable : TableInfo
    {
		public const string C_TableName = "PROD_MTRL_SCRAP_ITEM";
		
		public const string C_Id = "Id";
		public const string C_Scrap_Id = "Scrap_Id";
		public const string C_Scrap_No = "Scrap_No";
		public const string C_Mtrl_Id = "Mtrl_Id";
		public const string C_Mtrl_Code = "Mtrl_Code";
		public const string C_Mtrl_Name = "Mtrl_Name";
		public const string C_Scrap_Qty = "Scrap_Qty";
		public const string C_Unit = "Unit";
		public const string C_Location_No = "Location_No";
		public const string C_Scrap_Reason = "Scrap_Reason";
		
		public ProdMtrlScrapItemTable()
        {
            _tableName = "PROD_MTRL_SCRAP_ITEM";
        }
		
		protected static ProdMtrlScrapItemTable _current;
        public static ProdMtrlScrapItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new ProdMtrlScrapItemTable();

            _current.Add(C_Id, new ColumnInfo(C_Id,"Id", false, typeof(string)));
            _current.Add(C_Scrap_Id, new ColumnInfo(C_Scrap_Id,"ScrapId", false, typeof(string)));
            _current.Add(C_Scrap_No, new ColumnInfo(C_Scrap_No,"ScrapNo", false, typeof(string)));
            _current.Add(C_Mtrl_Id, new ColumnInfo(C_Mtrl_Id,"MtrlId", false, typeof(string)));
            _current.Add(C_Mtrl_Code, new ColumnInfo(C_Mtrl_Code,"MtrlCode", false, typeof(string)));
            _current.Add(C_Mtrl_Name, new ColumnInfo(C_Mtrl_Name,"MtrlName", false, typeof(string)));
            _current.Add(C_Scrap_Qty, new ColumnInfo(C_Scrap_Qty,"ScrapQty", false, typeof(decimal)));
            _current.Add(C_Unit, new ColumnInfo(C_Unit,"Unit", false, typeof(string)));
            _current.Add(C_Location_No, new ColumnInfo(C_Location_No,"LocationNo", false, typeof(string)));
            _current.Add(C_Scrap_Reason, new ColumnInfo(C_Scrap_Reason,"ScrapReason", false, typeof(string)));
			
		}
		
		public ColumnInfo Id
        {
            get { return this[C_Id]; }
        }
		
		public ColumnInfo Scrap_Id
        {
            get { return this[C_Scrap_Id]; }
        }
		
		public ColumnInfo Scrap_No
        {
            get { return this[C_Scrap_No]; }
        }
		
		public ColumnInfo Mtrl_Id
        {
            get { return this[C_Mtrl_Id]; }
        }
		
		public ColumnInfo Mtrl_Code
        {
            get { return this[C_Mtrl_Code]; }
        }
		
		public ColumnInfo Mtrl_Name
        {
            get { return this[C_Mtrl_Name]; }
        }
		
		public ColumnInfo Scrap_Qty
        {
            get { return this[C_Scrap_Qty]; }
        }
		
		public ColumnInfo Unit
        {
            get { return this[C_Unit]; }
        }
		
		public ColumnInfo Location_No
        {
            get { return this[C_Location_No]; }
        }
		
		public ColumnInfo Scrap_Reason
        {
            get { return this[C_Scrap_Reason]; }
        }
		
		
		
	}
}

